#ifndef _JUFFED_H_
#define _JUFFED_H_

/*
JuffEd - A simple text editor
Copyright 2007 Murzin Mikhail

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License 
version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/
//	Local

#include <QApplication>
#include <QtGui>
#include <QtCore> 
#include <QTextCodec>
#include <QCoreApplication>
#include <QApplication>
#include <QtGui>

#include "main.h"
#include "CharsetsSettings.h"
#include "CommandStorage.h"
#include "DocHandler.h"
#include "MainSettings.h"
#include "SettingsDlg.h"

#include <QtDebug>
#include <QDebug>



class DocumentHandler;
class JuffEdInterior;
class SettingsDlg;



class JuffEd : public QMainWindow {
Q_OBJECT
public:
	JuffEd();
	void SaveXsession();
    void OpenFile( QString file );

public slots:

protected slots:
	void changeCharset();
	void applySettings();
	void settings();
	void about();
	void aboutQt();
	void exit();
    void dragEnterEvent(QDragEnterEvent *e);
    void dropEvent(QDropEvent *e);

	void setStatusText(int, const QString&);

private:
	virtual void closeEvent(QCloseEvent*);

	void createMenuBar();
	void createToolBar();
	void createCharsetsMenu();
	void loadIcons();
	void createCommands();
	
	JuffEdInterior* jInt_;
};

#endif
